package com.jingdianjichi.subject.domain.convert;

import com.jingdianjichi.subject.domain.entity.SubjectAnswerBO;
import com.jingdianjichi.subject.domain.entity.SubjectRadioBO;
import com.jingdianjichi.subject.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectRadioConverter {
    SubjectRadioConverter INSTANCE = Mappers.getMapper(SubjectRadioConverter.class);

    SubjectRadio convertBOToRadio(SubjectRadioBO subjectRadioBO);

    List<SubjectRadio> convertBOToRadio(List<SubjectRadioBO> subjectRadioBOList);

    SubjectRadioBO convertRadioToBO(SubjectRadio subjectRadio);

    List<SubjectRadioBO> convertRadioToBO(List<SubjectRadio> subjectRadioList);

    SubjectRadio convertAnswerBOToRadio(SubjectAnswerBO subjectAnswerBO);

    List<SubjectRadio> convertAnswerBOToRadio(List<SubjectAnswerBO> subjectAnswerBOList);
}
